define([
    'cards',
    'indexView'
], function(Cards,IndexView) {
    var indexController={
        init:function(){
            var cards=new Cards();
            cards.fetch().done(function(data){
                cards.set(data.data);
                new IndexView({collection:cards})
            })
        }
    }
    return indexController;
});